package learn.basics.anonymous;

import java.util.Scanner;

class Person{
    String name_;
    public void ShowName(){
        System.out.println("我叫 "+ name_);
    }
}


class Demo01Anonymous{
    public static void Test(){

        Person one=new Person();
        one.name_="小明";
        one.ShowName();

        System.out.println("==================");
        new Person().name_="小红";
        new Person().ShowName();


    }
}

class Demo02Anonymous{
    public static void Test(){
        int num=new Scanner(System.in).nextInt();
        System.out.println(num);
    }
}






public class TestAnonymous {
    public static void main(String[] args) {
      //  Demo01Anonymous.Test();

        Demo02Anonymous.Test();
    }
}
